﻿@using AdminWeb.Models
@using NougakudoCompanion.Commons

<div class="wraper">
  <div class="pagetilte">NougakuDo Controller Logs</div>
  @{
      Runtime runtime = ViewBag.Runtime;
      var logs = new ControllerLog(runtime);
      var instances = logs.Instances;
      var logdata = logs.Logs;
      foreach (var instance in instances)
      {
  <div class="grey-border-alt">
    <div class="table-head">InstanceID:@instance</div>
    <table width="100%" class="body-content" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="20%" class="tab-head">TimeStamp</td>
        <td width="10%" class="tab-head">Level</td>
        <td width="70%" class="tab-head">Message</td>
      </tr>
           @foreach (var row in logdata[instance])
           {
               var cols = Helper.GetColums(row);
      <tr>
        <td>@Html.Encode(cols[0])</td>
        <td>@Html.Encode(cols[1])</td>
        <td>@Html.Encode(cols[2])</td>
      </tr>
           }
    </table>
  </div>
  <p></p>

      }
  }
</div>
